package tech.wangtong.dao;

import tech.wangtong.pojo.User;

import java.util.List;

//只负责MyUser表的增删改查
public interface UserDao{
    public int add(User u);
    public List<User> show();
    public User login(String username,String password);
    public int updatePassword(User u);
    public int deleteById(Integer id);
    public User selectById(Integer id);
    public int update(User u);
    public int selectCount();
    public List<User> selectPage(Integer pageNum,Integer pageSize);

    boolean checkUsername(String username);
}
